package edu.njfu.activtiylife

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import kotlinx.android.synthetic.main.activity_single_instance.*

class SingleInstanceActivity : BaseActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_single_instance)
        Log.d("SingleInstanceActivity",this.toString())
        Log.d("SintleInstanceActivity","taskId is ${taskId}")
        button12.setOnClickListener {
            var intent = Intent(this, SingleInstanceActivity::class.java)
            startActivity(intent)
        }
        button13.setOnClickListener {
            var intent = Intent(this, MainActivity::class.java)
            startActivity(intent)
        }
        Log.d("SingleInstanceActivity",javaClass.simpleName)
    }
}